package com.gzbsoft.sc.modules.sys.entity;
import io.ebean.annotation.DbComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;
//@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "jx_company")
@DbComment("公司信息表")
public class JxCompany extends BaseEntity {
    //    @DocEmbedded(doc = "id,username")
    @OneToOne
    @Column(name = "user_id")
    private JxUser user;
    @DbComment("公司名称")
    private String name;
    @DbComment("统一社会信用代码")
    private String usCreditCode;
    @DbComment("营业执照图片路径")
    private String businessLicense;
    @DbComment("企业状态:存续、在业、吊销、注销、迁入、迁出、停业、清算")
    private String companyStatus;
    @DbComment("公司地址")
    private String address;
    @DbComment("法人")
    private String corporateRepresentative;
    @DbComment("负责人手机号")
    private String principalPhone;
    @DbComment("负责人电子邮件")
    private String principalEmail;
    @Override
    public String toString() {
        return "JxCompany{" +
                ", name='" + name + '\'' +
                ", usCreditCode='" + usCreditCode + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", companyStatus='" + companyStatus + '\'' +
                ", address='" + address + '\'' +
                ", corporateRepresentative='" + corporateRepresentative + '\'' +
                ", principalPhone='" + principalPhone + '\'' +
                ", principalEmail='" + principalEmail + '\'' +
                ", id=" + id +
                '}';
    }
}
